---
title: "Podman"
description: "Learn how to use Dagger with Podman."
slug: /reference/container-runtimes/podman
---

# Podman

Dagger can be used with any OCI-compatible container runtime, including Podman.

## Prerequisites

Ensure that podman is installed and running on your system:

```console
$ podman info
host:
  arch: amd64
  buildahVersion: 1.41.4
  ...
```

:::warning
Podman must be configured for [rootful container execution](https://docs.podman.io/en/stable/markdown/podman-machine-set.1.html#rootful).
:::

You can install podman using the [official instructions](https://podman.io/getting-started/installation).

:::note
Podman Desktop on Mac and RHEL 8.x users may need to additionally execute `modprobe iptable_nat`.

To access the virtual machine used by Podman Desktop on Mac, use the commands below:

```console
# list podman machines
podman machine list

# log in to machine
podman machine ssh podman-machine-default

# execute command
sudo modprobe iptable_nat
```
:::

## Example

```console
$ podman ps
CONTAINER ID   IMAGE                                COMMAND                  CREATED       STATUS       PORTS                                         NAMES
$ dagger core version
v0.18.19
$ podman ps
CONTAINER ID   IMAGE                                COMMAND                  CREATED       STATUS       PORTS                                         NAMES
27d47c3d5a10   registry.dagger.io/engine:v0.18.19   "dagger-entrypoint.s…"   6 days ago    Up 4 hours                                                 dagger-engine-v0.18.19
```

## Resources

If you have any questions about additional ways to use Podman with Dagger, join our [Discord](https://discord.gg/dagger-io) and ask your questions in our [help channel](https://discord.com/channels/707636530424053791/1030538312508776540).

## About Podman

[Podman](https://podman.io/) is a Docker-compatible tool to manage and run OCI containers.
